<?php

include_once "../config.php";

session_start();
if(isset($_SESSION['uid'])){
    $id = $_GET['id'];
    $sql = "delete from wish where id='$id'";
    $result = $conn->query($sql);
    header("location:index.php?p=1");

}else {
     header("location:login.html");
    
}






//  $_GET

//  $_POST

//  $_SESSION